package mm.util;

public class UploadStats {
	
	private long totalSize = -2;

	private long bytesRead = 0;

	private long startTime = System.currentTimeMillis();

	private String currentStatus = "none";

	public long getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(long totalSize) {
		this.totalSize = totalSize;
	}

	public long getBytesRead() {
		return bytesRead;
	}

	public long getElapsedTimeInSeconds() {
		return (System.currentTimeMillis() - startTime) / 1000;
	}

	public String getCurrentStatus() {
		return currentStatus;
	}

	public void setCurrentStatus(String currentStatus) {
		this.currentStatus = currentStatus;
	}

	public void setBytesRead(long bytesRead) {
		this.bytesRead = bytesRead;
	}

	public void incrementBytesRead(long bytesRead2) {
		this.bytesRead += bytesRead2;
	}
}
